<?php if($this->stage == 255):?>
<option value="<?php echo $this->stage?>"><?php echo $this->translate('whole stage')?></option>
<?php else:?>
<?php for($i=1; $i <= $this->examineRow->period; $i++):?>
<option value="<?php echo $i?>" <?php if($i==$this->stage):?>selected<?php endif?> ><?php echo sprintf($this->translate('%dth stage'),$i)?></option>
<?php endfor;?>
<?php endif?>